package com.zmm.common.constant;

/**
 * @author 900045
 * @description:
 * @name RegularConstant
 * @date By 2021-06-22 11:45:48
 */
public final class RegularConstant {
	
	public static final String LONG_NUMBER = "^(-)?[0-9]+$";
	
	public static final String INTEGER_NUMBER = "^(-)?[0-9]+$";
	
	
	public static final String BIRTHDAY_REGEX = "^[1,2]\\d{3}(-){1}(0[1-9]||1[0-2])(-){1}(0[1-9]||[1,2][0-9]||3[0,1])$";

	/**
	 * 检查身份证号 要么是15位，要么是18位
	 */
	public static final String CHECK_ID_NUMBER = "(\\d{14}[0-9a-zA-Z])|(\\d{17}[0-9a-zA-Z])";

	/**
	 * 手机号码进行中间隐藏
	 */
	public static final String HIDE_PHONE = "(\\d{3})(\\d+)(\\d{4})";

	/**
	 * 隐藏身份证号码中间四位
	 */
	public static  final String HIDE_ID_NUMBER = "(\\w{4})(\\w+)(\\w{4})";

	/**
	 * 只保留中文数字及常用中文句符
	 */
	public static final String STRING_HANDLER = "([\u4e00-\u9fa5_a-zA-Z0-9|\\s|!|\\?|,|，|\\.|。|？|\\/]*)";
}
